package com.vhall.component.controller.watchlimit;

import com.vhall.component.controller.watchlimit.facade.WatchLimitInnerFacade;
import com.vhall.component.entity.room.vo.ApplyEntityDTO;
import com.vhall.component.entity.watchlimit.dto.ApplyUserEntityDTO;
import com.vhall.component.entity.watchlimit.dto.WhiteAccountsEntityDTO;
import com.vhall.component.framework.common.annotation.VhallComponent;
import com.vhall.component.service.watchlimit.WatchLimitInnerService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author lsl
 * @since 2021/6/25
 */
@VhallComponent
public class WatchLimitInnerController implements WatchLimitInnerFacade {

    @Autowired
    private WatchLimitInnerService watchLimitInnerService;


    @Override
    public Boolean checkWhiteAccount(String roomId, String password, String phone) {
        return watchLimitInnerService.checkWhiteAccount(roomId, password, phone);
    }

    /**
     * 根据房间id获取房间报名信息
     *
     * @param ilId 房间id
     * @return
     */
    @Override
    public ApplyEntityDTO getApply(String ilId) {
        return watchLimitInnerService.getApply(ilId);
    }

    @Override
    public ApplyUserEntityDTO getApplyUserByPhoneAndIlId(Integer ilId, Long phone) {
        return watchLimitInnerService.getApplyUserByPhoneAndIlId(ilId, phone);
    }

    @Override
    public WhiteAccountsEntityDTO getWhiteAccountsByNameAndIlId(Integer ilId, Long whitename) {
        return watchLimitInnerService.getWhiteAccountsByNameAndIlId(ilId, whitename);
    }
}
